<script setup lang="ts">
import { NodeProps } from '@vue-flow/core'

const { node } = defineProps<{ node: NodeProps }>()
</script>

<template>
  <div>
    <div>{{ node.data.label }}</div>
    <div class="pt-2 flex justify-center items-center gap-1">
      <el-tag :type="node.data.start ? 'success' : 'info'" size="small"> 开始节点 </el-tag>
      <el-tag :type="node.data.end ? 'primary' : 'info'" size="small"> 结束节点 </el-tag>
    </div>
  </div>
</template>

<style scoped lang="scss"></style>
